package com.wulijie.responsibilitychain;

/**
 * @Author cui
 * @Data
 */
public class Client {
    public static void main(String[] args) {
        MyRequest request = new MyRequest(1200, 1);

        OneApprover approver = new OneApprover("方案1");

        TwoApprover twoApprover = new TwoApprover("方案2");
        ThreeApprover threeApprover = new ThreeApprover("方案3");

        approver.setApprover(twoApprover);
        twoApprover.setApprover(threeApprover);
        threeApprover.setApprover(approver);

        approver.processMyRequest(request);
    }
}
